
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */
package com.hlkj.pay.app.transfer;

import com.hlkj.pay.infrastructure.model.common.TemplateDO;
import com.hlkj.pay.vo.common.resp.TemplateResp;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author monk
 * @date 2023/03/23
 */
@Mapper
public interface TemplateDoToResp {

    TemplateDoToResp INSTANCE = Mappers.getMapper(TemplateDoToResp.class);

    /**
     * list转换
     *
     * @param templateList
     * @return
     */
    List<TemplateResp> doToRespList(List<TemplateDO> templateList);


    /**
     * 对象转换
     *
     * @param templateDO
     * @return
     */
    TemplateResp doToResp(TemplateDO templateDO);

}
